package com.example.perpetualcalendar.domain.usecase;

import androidx.annotation.NonNull;

import com.example.perpetualcalendar.data.network.SchedulerProvider;
import com.example.perpetualcalendar.domain.entity.Almanac;
import com.example.perpetualcalendar.domain.entity.Calendar;
import com.example.perpetualcalendar.domain.repository.ApiAlmanac;
import com.example.perpetualcalendar.domain.repository.ApiCalendar;

import io.reactivex.Observable;

public class AlmanacUseCase extends UseCase implements ApiAlmanac {

    private final ApiAlmanac apiAlmanac;

    public AlmanacUseCase(SchedulerProvider schedulerProvider, ApiAlmanac apiAlmanac) {
        super(schedulerProvider);
        this.apiAlmanac = apiAlmanac;
    }

    @NonNull
    @Override
    public Observable<Almanac> almanacApi(String date) {
        return apiAlmanac.almanacApi(date);
    }
}
